<template>
    <div>
        
        <table>
            <caption style="font-size: 20px;">诊断报告单</caption>
            <tr>
                <td class="h">患者姓名</td>
                <td class="c">{{ printData.patient }}</td>
                <td class="h">患者性别</td>
                <td class="c"></td>
            </tr>
            <tr>
                <td class="h">患者年龄</td>
                <td class="c"></td>
                <td class="h">开单日期</td>
                <td class="c">{{ printData.createTime }}</td>
            </tr>
            <tr>
                <td class="h">门诊编号</td>
                <td class="c">{{ printData.clinicNumber }}</td>
                <td class="h">诊断标题</td>
                <td class="c">{{printData.title}}</td>
            </tr>
            <tr>
                <td class="h">会诊科室</td>
                <td class="c">{{ printData.depName }}</td>
                <td class="h">住院床号</td>
                <td class="c">{{ printData.bedNumber }}</td>
            </tr>
            <tr>
                <td class="h">诊断信息</td>
                <td style="width: 500px;height: 40px;line-height: 40px;" colspan="3">{{ printData.diagnosisText }}</td>
            </tr>
            <tr>
                <td class="c2" colspan="2">医生签字</td>
                <td class="c2" colspan="2">患者签字</td>
            </tr>
            <tr>
                <td class="c3" colspan="2">年 月 日</td>
                <td class="c3" colspan="2">年 月 日</td>
            </tr>
        </table>
    </div>
</template>

<script>

    export default {
        name:'PrintTable',
        props:{
            printData:{},
        }
    }
</script>

<style  scoped>
    .h{
        font-weight: bolder;
        width: 100px;
        height: 40px;
        text-align: center;
        line-height: 40px;
    }
    .c{
        width: 200px;
        height: 40px;
        line-height: 40px;
    }
    .c2{
        width: 300px;
        height: 40px;
        text-align: center;
        line-height: 40px;
    }
    .c3{
        height: 100px;
        width: 300px;
        /* display: flex;
        align-items: flex-end;
        justify-content: right; */
    }
    table{
        border-collapse:collapse;
    }
    td{
        border: 1px solid #000;
    }
</style>